<?php
namespace app\common\model;

class CourseAssistant extends \think\Model
{
    protected $visible=['assistant_id','term_id','week','class_week','class_time','course'];

    public function getClassWeekStrAttr(){
        return bitmapToStr($this->getAttr('class_week'));
    }

    public function getClassTimeStrAttr(){
        return bitmapToStr($this->getAttr('class_time'));
    }

    public function assistant(){
        return $this->belongsTo('Assistant');
    }
    
}
